import { reactive } from 'vue';

export const config = reactive({ 
  message: '如有疑问请联系客户！',
  title: '提示',
  show: false
});

export const useConfig = () => {
  return config
}

export const triggerTipDialog = ({message, title, show} = {}) => {
  config.message = message || config.message
  config.title = title || config.title
  config.show = show
}
